import Vue from 'vue';
import VueRouter from 'vue-router';
import Home from '../components/Home.vue';
import Login from '../components/login.vue';
import Preorder from '../components/Preorder.vue';
import Equipment from '../components/Equipment.vue';
import Member from '../components/Member.vue';
import OrderRegistration from '@/components/OrderRegistration.vue';
import cardsRules from '@/components/cardsRules.vue';
import Classtable from '../components/CourseTable.vue';
import evaluate from '../components/evaluate.vue';
import allevaluate from '../components/allevaluate.vue';
import reSetPassword from '@/components/reSetPassword.vue';
import Regist from '@/components/regist.vue';
import renew from '@/components/renew.vue';
import deviceList from '@/components/deviceList.vue';
import List from '@/components/list.vue';
import coachesView from '@/components/Coachesview.vue';
import deviceIntroduction from '@/components/deviceIntroduction.vue';
import Report from '@/components/Report.vue'; // 假设你的数据报表页面组件名为 Report.vue



Vue.use(VueRouter);

const routes = [
    {
        path: '/',
        name: 'login',
        component: Login,
    },
    {
        path: '/home',
        name: 'home',
        component: Home,
    },
    {
        path: '/coachesView',
        name: 'coachesView',
        component: coachesView,
    },
    {
        path: '/cardsRules',
        name: 'cardsRules',
        component: cardsRules,
    },
    {
        path: '/preorder',
        name: 'preorder',
        component: Preorder,
    },
    {
        path: '/list',
        name: 'List',
        component: List,
    },
    {
        path: '/regist',
        name: 'Regist',
        component: Regist,
    },
    {
        path: '/renew',
        name: 'renew',
        component: renew,
    },
    {
        path: '/orderRegistration',
        name: 'OrderRegistration',
        component: OrderRegistration,
    },
    {
        path: '/deviceList',
        name: 'deviceList',
        component: deviceList,
    },
    {
        path: '/deviceIntroduction',
        name: 'deviceIntroduction',
        component: deviceIntroduction,
    },
    {
        path: '/equipment',
        component: Equipment,
    },
    {
        path: '/member',
        name: 'member',
        component: Member,
    },
    {
        path: '/classtable',
        name: 'classtable',
        component: Classtable,
    },
    {
        path: '/resetpassword',
        name: 'reSetPassword',
        component: reSetPassword,
    },
    {
        path: '/evaluate',
        name: 'evaluate',
        component: evaluate,
    },
    {
        path: '/allevaluate',
        name: 'allevaluate',
        component: allevaluate,
    },
    {
        path: '/report',
        name: 'report',
        component: Report, // 添加数据报表页面的路由
    },
   
];

const router = new VueRouter({
    routes,
});

export default router;